package top.yuechenc.manage.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Table(name = "sp_order_goods")
public class SpOrderGoods {
    /**
     * 主键id
     */
    @Id
    private Integer id;

    /**
     * 订单id
     */
    @Column(name = "order_id")
    private Integer orderId;

    /**
     * 商品id
     */
    @Column(name = "goods_id")
    private Integer goodsId;

    /**
     * 商品单价
     */
    @Column(name = "goods_price")
    private BigDecimal goodsPrice;

    /**
     * 购买单个商品数量
     */
    @Column(name = "goods_number")
    private Byte goodsNumber;

    /**
     * 商品小计价格
     */
    @Column(name = "goods_total_price")
    private BigDecimal goodsTotalPrice;

    /**
     * 获取主键id
     *
     * @return id - 主键id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键id
     *
     * @param id 主键id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取订单id
     *
     * @return order_id - 订单id
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 设置订单id
     *
     * @param orderId 订单id
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取商品id
     *
     * @return goods_id - 商品id
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 设置商品id
     *
     * @param goodsId 商品id
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取商品单价
     *
     * @return goods_price - 商品单价
     */
    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    /**
     * 设置商品单价
     *
     * @param goodsPrice 商品单价
     */
    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    /**
     * 获取购买单个商品数量
     *
     * @return goods_number - 购买单个商品数量
     */
    public Byte getGoodsNumber() {
        return goodsNumber;
    }

    /**
     * 设置购买单个商品数量
     *
     * @param goodsNumber 购买单个商品数量
     */
    public void setGoodsNumber(Byte goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    /**
     * 获取商品小计价格
     *
     * @return goods_total_price - 商品小计价格
     */
    public BigDecimal getGoodsTotalPrice() {
        return goodsTotalPrice;
    }

    /**
     * 设置商品小计价格
     *
     * @param goodsTotalPrice 商品小计价格
     */
    public void setGoodsTotalPrice(BigDecimal goodsTotalPrice) {
        this.goodsTotalPrice = goodsTotalPrice;
    }
}